<?php

namespace backend\models;

use Yii;
use backend\components\BackendActiveRecord;

/**
 * This is the model class for table "project".
 *
 * @property string $projectId
 * @property string $projectName
 * @property string $discribe
 */
class Project extends BackendActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'project';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['projectName'], 'required'],
            [['discribe'], 'string'],
            [['projectName'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'projectId' => '项目ID',
            'projectName' => '项目名称',
            'discribe' => '项目描述',
        ];
    }



}
